package com.luboyan.CBillbill.service.user.auth.impl;

import com.luboyan.CBillbill.mapper.user.auth.AuthRoleMenuMapper;
import com.luboyan.CBillbill.dao.user.auth.AuthRoleMenu;
import com.luboyan.CBillbill.service.user.auth.AuthRoleMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Set;

/**
 * 角色页面访问权限
 */
@Service
public class AuthRoleMenuServiceImpl implements AuthRoleMenuService {

    @Autowired
    private AuthRoleMenuMapper authRoleMenuMapper;

    /**
     * 查询角色所对应的页面访问权限
     */
    @Override
    public List<AuthRoleMenu> getRoleMenusByRoleIds(Set<Long> roleIdS) {
        return authRoleMenuMapper.getRoleMenusByRoleIds(roleIdS);
    }
}
